<<<<<<< HEAD
import { request } from "./request"

// 获取验证码（注册：register，登录：login）
export const getCode = (data = {}) => {
  return request({
    url: `${process.env.VUE_APP_API_LOGIN}/getSms/`,
    method: "POST",
    data
  })
}

// 登录
export const login = (data = {}) => {
  return request({
    url: `${process.env.VUE_APP_API_LOGIN}/login/`,
    method: "POST",
    data
  })
}

// 注册
export const register = (data = {}) => {
  return request({
    url: "/register/",
    method: "POST",
    data
  })
=======
import { request } from "./request"

// 获取验证码（注册：register，登录：login）
export const getCode = (data = {}) => {
  return request({
    url: "/getSms/",
    method: "POST",
    data
  })
}

// 登录
export const login = (data = {}) => {
  return request({
    url: "/login/",
    method: "POST",
    data
  })
}

// 注册
export const register = (data = {}) => {
  return request({
    url: "/register/",
    method: "POST",
    data
  })
>>>>>>> 103eb3ad054c9ab96a8d469a8b9b68e43ae3ea0a
}